//
//  XBNavBaseController.swift
//  Sina
//
//  Created by 周旭斌 on 2017/3/24.
//  Copyright © 2017年 周旭斌. All rights reserved.
//

import UIKit

class XBNavBaseController: UINavigationController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        view.backgroundColor = UIColor.white;
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        if viewControllers.count > 0 {
            viewController.hidesBottomBarWhenPushed = true;
        }
        super.pushViewController(viewController, animated: animated);
        
    }

}
